package com.template.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@TableName(value = "user")
public class User {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    private String name;
    //用户名
    private String usercode;
    //用户密码
    private String userpwd;
    //更新时间
    private LocalDateTime updateTime = LocalDateTime.now();

    public User(String name, String usercode, String userpwd, LocalDateTime updateTime) {
        this.name = name;
        this.usercode = usercode;
        this.userpwd = userpwd;
        this.updateTime = updateTime;
    }
}
